home *** CD-ROM | disk | FTP | other *** search
/ Columbia Kermit / kermit.zip / newsgroups / misc.20031118-20041115 / 000215_fdc@columbia.edu_Thu Apr 15 11:28:40 2004.msg < prev    next >
Internet Message Format  |  2020-01-01  |  2KB

  1. Path: newsmaster.cc.columbia.edu!not-for-mail
  2. From: Frank da Cruz <fdc@columbia.edu>
  3. Newsgroups: comp.protocols.kermit.misc
  4. Subject: Re: Kermit-C and logging
  5. Date: 15 Apr 2004 15:27:04 GMT
  6. Organization: Columbia University
  7. Lines: 32
  8. Message-ID: <slrnc7tae8.4fi.fdc@sesame.cc.columbia.edu>
  9. References: <oRwfc.343$kb.20640@news.uswest.net>
  10. Reply-To: fdc@columbia.edu
  11. NNTP-Posting-Host: sesame.cc.columbia.edu
  12. X-Trace: newsmaster.cc.columbia.edu 1082042824 6735 128.59.59.56 (15 Apr 2004 15:27:04 GMT)
  13. X-Complaints-To: postmaster@columbia.edu
  14. NNTP-Posting-Date: 15 Apr 2004 15:27:04 GMT
  15. User-Agent: slrn/0.9.8.0 (SunOS)
  16. Xref: newsmaster.cc.columbia.edu comp.protocols.kermit.misc:14929
  17.  
  18. On 2004-04-15, root <root@sbic.com> wrote:
  19. : I'm trying to log the call records for our VoIP system using Kermit. It
  20. : works fine individually, but I have 5 seperate boxes that I telnet into on
  21. : port 1752, the data streams through and I have Kermit grab it and file it
  22. : into a log.
  23. :
  24. : It's a LOT cheaper than any call logging program out there and it works
  25. : great. The problem I have however is that I can't get my linux box to
  26. : automatically run these 5 seperate kermit sessions on boot. I'm using Red
  27. : Hat Enterprise and I also want to be able to monitor these sessions with
  28. : Big Brother. 
  29. :
  30. What's the problem?  You can start up one process on boot, but not five?
  31. Or you can't start up any processes on boot?
  32.  
  33. In the latter case, there is always the possibility that Kermit is
  34. trying to print some message to standard output, when there is no standard
  35. output (this should not happen, but it's possible).  In that case, part
  36. of your Kermit invocation should be to redirect standard output to a file
  37. or to /dev/null.
  38.  
  39. Do you want all five processes to log to the same file?  Kermit is not
  40. designed for that, but it can still be done with some creative script
  41. programming.  Basically, you need your script to not just blindly log
  42. the incoming stream to a file, but to parse it looking for records
  43. (lines or whatever), and then when it gets one, open the log file for
  44. exclusive append access (and if fail, keep trying until it succeeds),
  45. write out the record, close the file.  You might also want to put
  46. timestamps and session signatures on each record, in case they don't
  47. already have these.
  48.  
  49. - Frank